package com.tij.rtti.typeinfo;

/**
 * @ClassName: ch 14-2-3 p322
 * @author:
 * @Description: TODO
 * data:2024/10/6 20:55
 * @since
 **/
public class ClassCasts {
    public static void main(String[] args) {
        Buliding b = new House();
        Class<House> houseType = House.class;
        House h = houseType.cast(b);  // like: h = (House)b;

    }

}
    class Buliding {
    }

     class House extends Buliding {
    }
